package com.ruoyi.protocolTemplate.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 协议模板对象 jy_protocol_template
 *
 * @author jiuyou
 * @date 2021-07-09
 */
public class ProtocolTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 协议唯一码 */
    @Excel(name = "协议唯一码")
    private String templateCode;

    /** 协议标题 */
    @Excel(name = "协议标题")
    private String templateName;

    /** 协议内容 */
    private String templateText;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String templateShow;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTemplateCode(String templateCode)
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode()
    {
        return templateCode;
    }
    public void setTemplateName(String templateName)
    {
        this.templateName = templateName;
    }

    public String getTemplateName()
    {
        return templateName;
    }
    public void setTemplateText(String templateText)
    {
        this.templateText = templateText;
    }

    public String getTemplateText()
    {
        return templateText;
    }
    public void setTemplateShow(String templateShow)
    {
        this.templateShow = templateShow;
    }

    public String getTemplateShow()
    {
        return templateShow;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateCode", getTemplateCode())
            .append("templateName", getTemplateName())
            .append("templateText", getTemplateText())
            .append("templateShow", getTemplateShow())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
